package cn.edu.bupt.ch5_2.mapper;

import cn.edu.bupt.ch5_2.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface CommentMapper extends BaseMapper<Comment> {
    @Select("select * from comment where product_id = #{prodId}")
    List<Comment> findByProdId(@Param(value = "prodId") Long prodId);
}
